<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<h1>Login</h1>

<p>Please fill out the following form with your login credentials:</p>

<div class="form">
<a href="/yii-1-1-14/cart/site/page?view=about">About</a>
<?php 
//Yii::import('bootstrap.helpers.TbHtml');

	$form=$this->beginWidget('bootstrap.widgets.BsActiveForm', array(
	'id'=>'login-form',
	'htmlOptions' => array('class' => 'js-ajax-form'),
    //'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL,
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->textFieldControlGroup($model,'username'); ?>

	<?php echo $form->passwordFieldControlGroup($model,'password',array(
        'hint'=>'Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>',
    )); ?>

	<?php echo $form->checkBoxControlGroup($model,'rememberMe'); ?>
	<div class="control-group success"><div class="controls">
		<?php
echo BSHtml::submitButton('Submit', array(
    'color' => BSHtml::BUTTON_COLOR_PRIMARY
));
?>
	</div>
	</div>
<?php $this->endWidget(); ?>

</div><!-- form -->
<?php $this->widget('ext.hoauth.widgets.HOAuth'); ?>